import request from '@/utils/request'

// 商品大类信息
export const reqCategoryList = ({ current, size }) => request({
    url: `/prod/category/info?current=${current}&size=${size}`,
    method: 'GET'
})

// 根据商品大类ID 获取商品小类
export const reqSmallCategoryList = (prodId) => request({
    url: `/prod/info/${prodId}`,
    mmethod: 'GET'
})

// 删除商品分类
export const reqSmallCategoryList = (prodId) => request({
    url: '/prod/category/delete',
    mmethod: 'POST'
})


// // 根据商品大类 id 获取商品大类信息
// export const reqInitFormData = (id) => request({
//     url: `/admin/bigType/${id}`,
//     method: 'GET'
// })

// // 修改保存后的商品大类信息
// export const reqSaveFormData = (formData) => request({
//     url: '/admin/bigType/save',
//     method: 'POST',
//     data: formData
// })

